package org.springblade.modules.ad.controller;

import org.springblade.modules.ad.entity.AdOU;
import org.springblade.modules.ad.service.AdOUService;
import org.springblade.modules.ad.utils.Result;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * OU  Controller
 * @ClassName AdOUController.java
 * @version 1.0.0
 * @author zhangyunjiao
 * @createTime 2021/8/26
 */

@RestController
@RequestMapping("/blade-test")
public class AdOUController {

	@Resource
	private AdOUService adouService;

	/**
	 * 添加OU
	 * @param adOU
	 */
	@PostMapping(value = "/addOU")
	public Result addOU(@RequestBody AdOU adOU){
		return adouService.addOU(adOU);
	}


}
